package com.smart.campus.school.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.campus.common.annotation.Excel;
import com.smart.campus.common.core.domain.BaseEntity;

/**
 * 试题答案对象 sc_ exam_answer
 * 
 * @author Zhihe.Li
 * @date 2020-05-20
 */
public class ExamAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 试题id */
    @Excel(name = "试题id")
    private Long questionId;

    /** 试题名称 */
    @Excel(name = "试题名称")
    private String name;

    /** 结果 */
    @Excel(name = "结果")
    private Integer result;

    /** 年级 */
    @Excel(name = "年级")
    private Long sortNo;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 分数 */
    @Excel(name = "分数")
    private Long score;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setResult(Integer result) 
    {
        this.result = result;
    }

    public Integer getResult() 
    {
        return result;
    }
    public void setSortNo(Long sortNo) 
    {
        this.sortNo = sortNo;
    }

    public Long getSortNo() 
    {
        return sortNo;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getQuestionId())
            .append("name", getName())
            .append("result", getResult())
            .append("sortNo", getSortNo())
            .append("content", getContent())
            .append("score", getScore())
            .append("status", getStatus())
            .toString();
    }
}
